package com.xianzw.mnfun.model.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;

import lombok.Data;

/**
 * 吐槽
 * @author xianzw
 *
 */
@Data
@Entity
@Table(name = "halo_barrage")
public class Barrage implements Serializable{
	
    /**
	 * 
	 */
	private static final long serialVersionUID = 6596170977506683439L;

	/**
     * 分类编号
     */
    @Id
    @GeneratedValue
    private Long cateId;
    
    /**
     * 时间
     */
    private Date barrageDate;
    
    /**
     * 吐槽
     */
    @NotBlank(message = "分类路径不能为空")
    @Max(value=30)
    private String str;

}
